home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / SYMBOL / Symbol Generators / Morphs / gen-random-variate < prev   
Text File  |  1998-10-23  |  882b  |  14 lines

  1. gen-random-variate seed smooth-value lower upper pattern
  2.  
  3. This function uses brownian noise to determine the degree to which random fluctuations will occur in the pattern. This is a kind of melodic and harmonic humanizer that generates natural fluctuations breaking the rigid fractal structure (of gen-trans, for example) and yet still preserving the characteristics of the original.
  4.  
  5. Seed and smooth-value initializes the brownian generator. Lower and upper control the lower and upper limits of the modifications. Note that rest symbol = is preserved as it is. The transpose values are not touched but the symbol values can be variated.
  6.  
  7. (gen-random-variate 0.9 0.05 -1 1 
  8.                 '(a a a = a a a a a a a a a a a a a a))
  9. --> (a a a = a a a a a a b b b b a a a b)
  10.  
  11. (gen-random-variate 0.8 0.9 0 1 
  12.                 '(a abcd (-2 a-b) abc a (1 a)))
  13. --> (a abcd (-2 ba) bcd a (1 a))
  14.